list = []
for i in range(10,30):
    if i % 3 == 0 or i % 5 == 0:
        list.append(i)

print(list)

list01 = [i for i in range(10,30) if i%3==0 or i % 5 ==0]
print(list01)

list02 = []
for j in range(5,20):
    list02.append(j**2)
print(list02)

list03 = [j**2 for j in range(5,20)]
print(list03)